package com.crazy.crazyserviceclient.service;

import com.crazy.crazymodel.model.entity.Customer;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Date: 2024-05-07-15:22
 * @Author: Zheng Zeliang
 */
@FeignClient(name = "crazy-transaction-service", path = "/api/transaction/inner")
public interface TransactionFeignClient {
    /**
     * 根据 id 确认申购订单
     * @param transactionId
     * @return
     */
    @PostMapping("/confirm")
    void confirmSubs(@RequestParam("transactionId") int transactionId);
    /**
     * 根据 id 确认赎回订单
     * @param transactionId
     * @return
     */
    @PostMapping("/redeem/confirm")
    void confirmRedeem(@RequestParam("transactionId") int transactionId);
}
